/**
 * test
 */
import ColorString from "./color-string.js";

(async function name() {
    const msg = "测试颜色";
    // process.stdout.write(`\x1b[30m ${msg} \x1b[0m`, "utf8");    // Black
    // process.stdout.write(`\x1b[31m ${msg} \x1b[0m`, "utf8");    // Red
    // process.stdout.write(`\x1b[32m ${msg} \x1b[0m`, "utf8");    // Green
    // process.stdout.write(`\x1b[33m ${msg} \x1b[0m`, "utf8");    // Yellow
    // process.stdout.write(`\x1b[34m ${msg} \x1b[0m`, "utf8");    // Blue
    // process.stdout.write(`\x1b[35m ${msg} \x1b[0m`, "utf8");    // Purple
    // process.stdout.write(`\x1b[36m ${msg} \x1b[0m`, "utf8");    // Cyan
    // process.stdout.write(`\x1b[37m ${msg} \x1b[0m`, "utf8");    // White

    console.log(ColorString.Black(msg));
    console.log(ColorString.Red(msg));
    console.log(ColorString.Green(msg));
    console.log(ColorString.Yellow(msg));
    console.log(ColorString.Blue(msg));
    console.log(ColorString.Purple(msg));
    console.log(ColorString.Cyan(msg));
    console.log(ColorString.White(msg));
})();
